package com.wrx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wrx
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_reply_post")
@ApiModel(value="ReplyPost对象", description="")
public class ReplyPost{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回帖id")
    @TableId(value = "reply_post_id", type = IdType.AUTO)
    private Integer reply_post_id;

    @ApiModelProperty(value = "用户id")
    private Integer user_id;

    @ApiModelProperty(value = "回帖信息")
    private String reply_post_info;

    @ApiModelProperty(value = "主题帖id")
    private Integer theme_post_id;

    @ApiModelProperty(value = "回帖时间")
    private LocalDateTime reply_post_time;

    @ApiModelProperty(value = "帖子楼数")
    private Integer reply_post_floor;

    ReplyPost(){};


    public ReplyPost(Integer reply_post_id, Integer user_id, Integer theme_post_id) {
        this.reply_post_id = reply_post_id;
        this.user_id = user_id;
        this.theme_post_id = theme_post_id;
    }

    public ReplyPost(Integer replyPostId, Integer userId, String replyPostInfo, Integer themePostId, LocalDateTime replyPostTime, Integer replyPostFloor) {
        this.reply_post_id = replyPostId;
        this.user_id = userId;
        this.reply_post_info = replyPostInfo;
        this.theme_post_id = themePostId;
        this.reply_post_time = replyPostTime;
        this.reply_post_floor = replyPostFloor;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getReplyPostId() {
        return reply_post_id;
    }

    public void setReplyPostId(Integer replyPostId) {
        this.reply_post_id = replyPostId;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getReply_post_info() {
        return reply_post_info;
    }

    public void setReply_post_info(String reply_post_info) {
        this.reply_post_info = reply_post_info;
    }

    public Integer getTheme_post_id() {
        return theme_post_id;
    }

    public void setTheme_post_id(Integer theme_post_id) {
        this.theme_post_id = theme_post_id;
    }

    public LocalDateTime getReply_post_time() {
        return reply_post_time;
    }

    public void setReply_post_time(LocalDateTime reply_post_time) {
        this.reply_post_time = reply_post_time;
    }

    public Integer getReply_post_floor() {
        return reply_post_floor;
    }

    public void setReply_post_floor(Integer reply_post_floor) {
        this.reply_post_floor = reply_post_floor;
    }
}
